package com.zeus.base.smscenter.controller;

import com.zeus.base.smscenter.common.BaseController;
import com.zeus.base.smscenter.model.Log;
import com.zeus.base.smscenter.service.ISmsCenterLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 企业角色授权Controller
 * Created by ShanFei on 2017-03-21.
 */
@RestController
@RequestMapping("/controller/orderCenterLog")
public class SmsCenterLogController extends BaseController {
    @Autowired
    private ISmsCenterLogService iSmsCenterLogService;
    /**
     * 获取应用系统
     *
     * @param keyId
     * @return
     */
    @RequestMapping(value = "/get", method = RequestMethod.POST)
    @ResponseBody
    public Log getLog(Integer keyId){
        return iSmsCenterLogService.selectByPrimaryKey(keyId);
    }
}
